package com.tueye.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 注意@ManyToMany/@JoinTable(多对多关系),@OrderBy/LinkedHashSet(集合排序),@Transient(非持久化属性)的应用.
 * 
 * @author hanxiaowei
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_adsite_type")
public class Adsite extends BaseEntity {

	private String adsite_name;
	private String adsite_description;
	private String moduleId;
	private String moduleName;
	private String modulePlate;
	private List<Adinfo> adinfos;

	@OneToMany(mappedBy = "adsite", cascade = CascadeType.ALL)
	public List<Adinfo> getAdinfos() {
		return adinfos;
	}

	public void setAdinfos(List<Adinfo> adinfos) {
		this.adinfos = adinfos;
	}

	public String getAdsite_name() {
		return adsite_name;
	}

	public void setAdsite_name(String adsite_name) {
		this.adsite_name = adsite_name;
	}

	public String getAdsite_description() {
		return adsite_description;
	}

	public void setAdsite_description(String adsite_description) {
		this.adsite_description = adsite_description;
	}

	public String getModuleId() {
		return moduleId;
	}

	public void setModuleId(String moduleId) {
		this.moduleId = moduleId;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getModulePlate() {
		return modulePlate;
	}

	public void setModulePlate(String modulePlate) {
		this.modulePlate = modulePlate;
	}

}